import React, { Component } from 'react';
import {Switch,Route,Redirect} from 'react-router';
import System from '../info-management/system/system';
import Product from '../info-management/product/product';
import Info from '../web-management/info/info';
import Classlist from '../web-management/classlist/classlist';
import Account from '../web-management/account/account';
import Modify from '../modify/modify';
import Setting from '../other-setting/setting/setting';
import Logger from '../other-setting/logger/logger';
import WebManagement from '../web-template/web-management/web-management';
import WebType from '../web-template/web-type/web-type';
import TpLindustry from '../web-template/tplindustry/tplindustry';
import TplColor from '../web-template/tplcolor/tplcolor';
import XxlClient from '../information-flow/xxlclient/xxlclient';
import XxlTongji from '../information-flow/xxltongji/xxltongji';
import XxlGoutong from '../information-flow/xxlgoutong/xxlgoutong';
import XxlRate from '../information-flow/xxl-rate/xxl-rate';
import Message from '../info-management/message/message';
import Tag from '../info-management/tag/tag';
import FromMag from '../info-management/form-mag/form-mag';
class AppRouter extends Component {
    constructor(props) {
        super(props);
        this.state = {  }
    }
    render() { 
        return (
            <Switch>
                <Route path='/home/system' component={System} />
                <Route path='/home/product' component={Product} />
                <Route path='/home/message' component={Message} />
                <Route path='/home/tag' component={Tag} />
                <Route path='/home/formmag' component={FromMag} />
                <Route path='/home/info' component={Info}/>
                <Route path='/home/classlist' component={Classlist}/>
                <Route path='/home/account' component={Account}/>
                <Route path='/home/setting' component={Setting}/>
                <Route path='/home/logger' component={Logger}/>
                <Route path='/home/webmanagement' component={WebManagement}/>
                <Route path='/home/webtype' component={WebType}/>
                <Route path='/home/tplindustry' component={TpLindustry}/>
                <Route path='/home/tplcolor' component={TplColor}/>
                <Route path='/home/xxlclient' component={XxlClient} />
                <Route path='/home/xxltongji' component={XxlTongji} />
                <Route path='/home/xxlgoutong' component={XxlGoutong} />
                <Route path='/home/xxlrate' component={XxlRate} />
                <Route path='/home/modify/act/:act/url/:url/id/:id' component={Modify} />
                <Redirect to='/home/system' />
            </Switch>
        );
    }
}
 
export default AppRouter;